package com.team.ai.controller;

import com.team.ai.service.AiVideoService;
import com.team.ai.service.StuBookService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.*;

@CrossOrigin//跨域
@RestController//遵循RestFul
@RequestMapping("v2/stubook/")
public class StuBookController {
    @Resource
    StuBookService stuBookService;



    /**
     * 查
     * @return
     */
    @GetMapping("selectList")
    private String selectList(

    ){
        return stuBookService.selectList();

    }
    @GetMapping("selectDetail")
    private String selectDetail(
            @RequestParam(value = "id",defaultValue = "-1") int id

    ){
        return stuBookService.selectDetail(id);

    }

}
